package ParseWhere;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.util.*;

/**
 *
 * @author DOHUY91
 */
public class RowData {
    public boolean m_isEdited;
    public ArrayList<CellDefinition> m_list;

    public boolean isM_isEdited() {
        return m_isEdited;
    }

    public void setM_isEdited(boolean m_isEdited) {
        this.m_isEdited = m_isEdited;
    }

    public ArrayList<CellDefinition> getM_list() {
        return m_list;
    }

    public void setM_list(ArrayList<CellDefinition> m_list) {
        this.m_list = m_list;
    }

    @Override
    public String toString() {
        int size = m_list.size();
        String format = "";
        for (int i = 0; i < size; i++) {
            format += m_list.get(i).toString();
        }
        return String.format("%b-" + format, m_isEdited);
    }
                
    public RowData(boolean m_isEdited, ArrayList<CellDefinition> m_list) {
        this.m_isEdited = m_isEdited;
        this.m_list = m_list;
    }
        
    public RowData() {
        this.m_list = new ArrayList<CellDefinition>();        
    }        
}
